/**
 * 
 */
package com.gps.pe.model;

import java.io.Serializable;

import com.gps.pe.utility.GlobalConstantEnum;
import com.gps.pe.utility.StringUtils;

/**
 * @author GPS
 *
 */
public class User implements Serializable {

	private static final long serialVersionUID = -8916693318737638649L;
	
	private String uuid;
	private String loginId;
	private String password;
	private int roleId;
	private int version;
	private boolean deleted;

	/**
	 * 
	 */
	public User() {
		// TODO Auto-generated constructor stub
	}

	public String getLoginId() {
		return loginId;
	}

	public String getPassword() {
		return password;
	}

	public int getRoleId() {
		return roleId;
	}

	public String getUuid() {
		return uuid;
	}

	public int getVersion() {
		return version;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(boolean deleted) {
		this.deleted = deleted;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public void setPassword(String password) {
		this.password = StringUtils.decryptString(GlobalConstantEnum.ENCRYPTION_KEY.getValue(), password);
	}

	public void setRoleId(int roleId) {
		this.roleId = roleId;
	}

	public void setUuid(String uuid) {
		this.uuid = uuid;
	}

	public void setVersion(int version) {
		this.version = version;
	}

}
